﻿using EONFULLSIN2.Models.Dto.Device;
using EONFULLSIN2.Models.Enum.IOPointEnum;
using EONFULLSIN2.Models.Enum.SensorPoint;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EONFULLSIN2.Services.Device.ZMoiton {

    /// <summary>
    /// 正运动IO轴卡服务接口，务必注册成单例
    /// </summary>
    public interface IZMoitonService : IDeviceBaseServices {

        /// <summary>
        /// IOPoints
        /// </summary>
        List<eIOPointEnum> IOPoints { get; }

        /// <summary>
        /// 获取IO轴卡的所有OutPut状态
        /// </summary>
        /// <returns></returns>
        Task<List<SensorItemDto>> GetSensorOutPutStatusAsync();

        /// <summary>
        /// 获取IO轴卡特定位置的OutPut状态
        /// </summary>
        /// <param name="eIOPointEnum"></param>
        /// <returns></returns>
        Task<bool?> GetSensorOutPutStatusByIndexAsync(eIOPointEnum eIOPointEnum);


        /// <summary>
        /// 设置IO轴卡特定位置的OutPut状态
        /// </summary>
        /// <param name="eIOPointEnum"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        Task<bool> SetOutPutStatusByIndexAsync(eIOPointEnum eIOPointEnum, bool value);
    }

}
